package com.wangfugui.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 二级分类表
 * </p>
 *
 * @author liyu
 * @since 2025-04-12
 */
@Getter
@Setter
@TableName("short_play_categories")
@ApiModel(value = "ShortPlayCategories对象", description = "二级分类表")
public class ShortPlayCategories implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("分类名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("分类级别(1-一级,2-二级)")
    @TableField("level")
    private Byte level;

    @ApiModelProperty("父分类ID(一级分类为0)")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("排序权重(越小越靠前)")
    @TableField("sort_order")
    private Integer sortOrder;

    @ApiModelProperty("状态(1-启用,0-禁用)")
    @TableField("status")
    private Byte status;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}
